No backend is emitting GDK_DESTROY events anymore, so no
need to carry this around.
case GDK_FOCUS_CHANGE:
case GDK_NOTHING:
case GDK_DELETE:
- case GDK_DESTROY:
case GDK_GRAB_BROKEN:
case GDK_EVENT_LAST:
default:
case GDK_DROP_START:
case GDK_NOTHING:
case GDK_DELETE:
- case GDK_DESTROY:
case GDK_GRAB_BROKEN:
case GDK_PAD_BUTTON_PRESS:
case GDK_PAD_BUTTON_RELEASE:
* @GDK_DELETE: the window manager has requested that the toplevel surface be
* hidden or destroyed, usually when the user clicks on a special icon in the
* title bar.
- * @GDK_DESTROY: the surface has been destroyed.
* @GDK_MOTION_NOTIFY: the pointer (usually a mouse) has moved.
* @GDK_BUTTON_PRESS: a mouse button has been pressed.
* @GDK_BUTTON_RELEASE: a mouse button has been released.
{
GDK_NOTHING,
GDK_DELETE,
- GDK_DESTROY,
GDK_MOTION_NOTIFY,
GDK_BUTTON_PRESS,
GDK_BUTTON_RELEASE,
case GDK_PAD_GROUP_MODE:
case GDK_GRAB_BROKEN:
case GDK_DELETE:
- case GDK_DESTROY:
case GDK_FOCUS_CHANGE:
case GDK_PROXIMITY_IN:
case GDK_PROXIMITY_OUT:
break;
case GDK_DELETE:
- case GDK_DESTROY:
g_object_ref (target_widget);
if (!gtk_window_group_get_current_grab (window_group) ||
GTK_WIDGET (gtk_widget_get_root (gtk_window_group_get_current_grab (window_group))) == target_widget)
widget = NULL;
if (event && event->any.surface &&
- (event->any.type == GDK_DESTROY || !gdk_surface_is_destroyed (event->any.surface)))
+ (!gdk_surface_is_destroyed (event->any.surface)))
widget = gtk_native_get_for_surface (event->any.surface);
return widget;